 <?php
 header('content-type:text/html; charset=utf-8');
@$id=$_REQUEST['id'];
@$name=$_REQUEST['name'];

$pdo=new PDO('mysql:dbname=mydb;charset=utf8','root');
$stat=$pdo->prepare('insert into person values ()');
$stat->execute(array('name'=>$name));
$data=$stat->fetchAll(PDO::FETCH_NAMED);




 